<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://old.marsrutai.lt/API.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Marsrutai.API" />
  <xs:import schemaLocation="http://old.marsrutai.lt/API.svc?xsd=xsd4" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import schemaLocation="http://old.marsrutai.lt/API.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/System" />
  <xs:element name="GetStopGroups">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterLat" type="xs:double" />
        <xs:element minOccurs="0" name="filterLng" type="xs:double" />
        <xs:element minOccurs="0" name="filterDistance" type="xs:double" />
        <xs:element minOccurs="0" name="withSchedules" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopGroupsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopGroupsResult" nillable="true" type="q1:ArrayOfBusStopGroup" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetLocations">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="preferredDB" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="maxResults" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetLocationsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetLocationsResult" nillable="true" type="q2:ArrayOfLocation" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStops">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterLat" type="xs:double" />
        <xs:element minOccurs="0" name="filterLng" type="xs:double" />
        <xs:element minOccurs="0" name="filterDistance" type="xs:double" />
        <xs:element minOccurs="0" name="withSchedules" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopsResult" nillable="true" type="q3:ArrayOfBusStop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopsNear">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="lat" type="xs:double" />
        <xs:element minOccurs="0" name="lng" type="xs:double" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopsNearResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopsNearResult" nillable="true" type="q4:ArrayOfBusStop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopNames">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopNamesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="GetStopNamesResult" nillable="true" type="q5:ArrayOfstring" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetSchedules">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="transport" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="withTimes" type="xs:boolean" />
        <xs:element minOccurs="0" name="withRuns" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetSchedulesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetSchedulesResult" nillable="true" type="q6:ArrayOfSchedule" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTracks">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="scheduleID" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="withStops" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTracksResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetTracksResult" nillable="true" type="q7:ArrayOfBusTrack" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTrackStops">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="trackID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTrackStopsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetTrackStopsResult" nillable="true" type="q8:ArrayOfBusStop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDifferentRunningDays">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="scheduleID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDifferentRunningDaysResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetDifferentRunningDaysResult" nillable="true" type="q9:ArrayOfDaysOfWeek" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopTimes">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="trackID" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="stopID" nillable="true" type="xs:string" />
        <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="day" type="q10:DayOfWeek" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopTimesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopTimesResult" nillable="true" type="q11:ArrayOfArrivalTime" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopDayTimes">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="trackID" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="stopID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopDayTimesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopDayTimesResult" nillable="true" type="q12:ArrayOfStopDayTimes" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindRoutes">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="start" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="end" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="time" type="xs:dateTime" />
        <xs:element minOccurs="0" name="isArrival" type="xs:boolean" />
        <xs:element minOccurs="0" name="transports" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="transportTypes" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="maxRides" type="xs:int" />
        <xs:element minOccurs="0" name="changeDuration" type="xs:int" />
        <xs:element minOccurs="0" name="maxWalkDistance" type="xs:int" />
        <xs:element minOccurs="0" name="walkSpeed" type="xs:int" />
        <xs:element minOccurs="0" name="withPolyline" type="xs:boolean" />
        <xs:element minOccurs="0" name="preferredDB" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterDB" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindRoutesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="FindRoutesResult" nillable="true" type="q13:SearchResult" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetArrivalTimes">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="stopFullName" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="maxMinutes" type="xs:int" />
        <xs:element minOccurs="0" name="maxResults" type="xs:int" />
        <xs:element minOccurs="0" name="time" type="xs:dateTime" />
        <xs:element minOccurs="0" name="stopID" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="filterTransports" type="xs:boolean" />
        <xs:element minOccurs="0" name="scheduleID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetArrivalTimesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetArrivalTimesResult" nillable="true" type="q14:ArrayOfArrivalTime" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetVehiclePositions">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="transport" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="scheduleName" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetVehiclePositionsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetVehiclePositionsResult" nillable="true" type="q15:ArrayOfVehiclePosition" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopByID">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="stopID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetStopByIDResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetStopByIDResult" nillable="true" type="q16:BusStop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScheduleByID">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="scheduleID" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="withTimes" type="xs:boolean" />
        <xs:element minOccurs="0" name="withRuns" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScheduleByIDResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetScheduleByIDResult" nillable="true" type="q17:Schedule" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTrackByID">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="trackID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetTrackByIDResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetTrackByIDResult" nillable="true" type="q18:BusTrack" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetRunByID">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="runID" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetRunByIDResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetRunByIDResult" nillable="true" type="q19:BusRun" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScopes">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScopesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetScopesResult" nillable="true" type="q20:ArrayOfScopeInfo" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetAvailableMobileScopes">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="GetAvailableMobileScopesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetAvailableMobileScopesResult" nillable="true" type="q21:ArrayOfScopeInfo" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetPreferredDBs">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="GetPreferredDBsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetPreferredDBsResult" nillable="true" type="q22:ArrayOfDBInfo" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetPreferredDBByIP">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="ip" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetPreferredDBByIPResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q23="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetPreferredDBByIPResult" nillable="true" type="q23:DBInfo" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDayOfWeek">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="date" type="xs:dateTime" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDayOfWeekResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q24="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="GetDayOfWeekResult" type="q24:DayOfWeek" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScopeInfo">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="scope" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="withoutValid" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetScopeInfoResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q25="http://schemas.datacontract.org/2004/07/Marsrutai.API" minOccurs="0" name="GetScopeInfoResult" nillable="true" type="q25:ScopeInfo" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>